import { createRouter, createMemoryHistory } from "vue-router";

const router = createRouter({
  history: createMemoryHistory(),
  routes: [
    {
      path: "/",
      children: [
        {
          path: "",
          name: "Index",
          component: () => import("@/views/Index.vue"),
        }
      ],
    },
    { path: '/:pathMatch(.*)*', name: 'NotFound', redirect: '/' },
  ],
});

export default router;
